Fix support for sxp domain configuration files.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Sat, 19 Nov 2005 00:59:43 +0000 (01:59 +0100)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Sat, 19 Nov 2005 00:59:43 +0000 (01:59 +0100)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xm/create.py

index 23ea2ba97504bd09d4c6d013d4997b877523780f..cb4eb9694730925dcc0f15de48d46f3d9c264a64 100644 (file)
@@ -905,6 +905,9 @@ def parseCommandLine(argv):
             opts.setopt('name', os.path.basename(opts.getopt('defconfig')))
         config = make_config(opts.vals)
 
+    if type(config) == str:
+        config = sxp.parse(file(config))[0]
+
     return (opts, config)